DECLARE @Temp TABLE(RandomString VARCHAR(MAX))
DECLARE @count INT
SET @count = 0

SET NOCOUNT ON;

WHILE (@count <= 10000)
BEGIN
	SET @count = @count + 1
	
	DELETE FROM @Temp
	INSERT INTO @Temp
	EXEC sp_GenerateRandomString 20
	
	-- Insert random data into the table
	INSERT INTO Item
	SELECT
		RandomString,
		GETDATE()
	FROM @Temp
END

SET NOCOUNT OFF;
